<template>
    <i-frame :src="openUrl" />
  </template>
   
  <script>
  import { getToken } from '@/utils/auth'
  import iFrame from "@/components/iFrame/index";
   
  export default {
    name: 'JimuReportViewBi',
    components: { iFrame },
    data() {
      return {
        openUrl: '',
      }
    },
    created() {
      const reportId = this.$route.path.substring(this.$route.path.lastIndexOf("/")+1)
      this.openUrl = process.env.VUE_APP_BASE_API + '/drag/share/view/' + reportId + '?token=Bearer ' +  getToken()
    }
  }
  </script>
   
  <style scoped>
   
  </style>
   